#include "timer_Impl.h"
#include "myUtil.h"
#include "Me.h"
#include "ttClientPrxMgr.h"
#include "ttMsgMap.h"
#include "editManager.h"

IMPLTIMER(testtimer)
{
	return 0;
}

IMPLTIMER(painttimer)
{
	Me->move(10);
	InvalidateRect(hwnd, NULL, FALSE);
	::GetWindowRect(hwnd, &(ttMsgMap::Get()->m_msglpvar.m_MainRect));
	if (ttMsgMap::Get()->m_msglpvar.m_bMessaging){
		RECT *pr = &(ttMsgMap::Get()->m_msglpvar.m_MainRect);
		::SetWindowPos(ttMsgMap::Get()->m_msglpvar.m_hMsg, HWND_TOPMOST, pr->left + 20,
			pr->bottom - 30, 300, 20, SWP_SHOWWINDOW);
		::SetFocus(editManager::Get()->getObj(0)->getHwnd());
	}
	return 0;
}